<div class="breadcrum">
    <p>
        <a href="#">Inventarisasi</a>
        <span></span><a href="{$config->site_url('inventarisasi/pengadaan')}">Pengadaan</a>
        <span></span><a href="{$config->site_url('inventarisasi/pengadaan/edit/')}/{$result_info.pengadaan_id}">Pengajuan Barang</a>
        <span></span><a href="{$config->site_url('inventarisasi/pengadaan/pengajuan_barang/')}/{$result_info.pengadaan_id}">{$result_info.pengadaan_nomor|default:''}</a>
        <span></span><small>{$result.pengajuanbarang_nama|default:''}</small> 
    </p>
    <div class="clear"></div>
</div>
<div class="sub-nav-content"> 
    <div class="sub-content">
        <div class="table-info-box">
            <h3>No. Pengadaan - {$pengadaan_detail.pengadaan_nomor|default:''}</h3>
            <table width="100%" class="table-info">
                <tbody>
                    <tr>
                        <th valign="top">Bagian</th>
                        <td>{$result_info.bagian_name|default:''}</td>
                    </tr>
                    <tr>
                        <th width="20%">Manager</th>
                        <td width="80%">{$result_info.bagian_penanggungjawab|default:''}</td>                        
                    </tr>             
                    <tr>
                        <th>Tanggal </th>
                        <td>{$dtm->get_full_date($result_info.pengadaan_date|default:'')}</td>
                    </tr>
                    <tr>
                        <th>Total </th>
                        <td id="total" style="color: red;"><b>Rp. {$total|number_format:0:",":"."}</b></td>                           
                    </tr>
                    <tr>
                        <th>Keterangan</th>
                        <td>{$result_info.pengadaan_keterangan|default:''}</td>
                    </tr>
                </tbody>
            </table>
        </div>   
        <div class="clear"></div>
        <div class="navigation">           
            <div class="navigation-button">
                <ul>
                    <li><a href="{$config->site_url('inventarisasi/pengadaan/add_barang')}/{$result_info.pengadaan_id|default:''}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/add-icon.png">Tambah Barang</a></li> 
                    <li><a href="{$config->site_url('inventarisasi/pengadaan/pengajuan_barang')}/{$result_info.pengadaan_id|default:''}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/icon.notes.blue.png">Daftar Barang</a></li> 
                </ul>
                <div class="clear"></div>
            </div>
        </div>
        <!-- notification template -->
        {include file="base/templates/notification.html"}
        <!-- end of notification template--> 
        <form action="{$config->site_url('inventarisasi/pengadaan/delete_barang_process')}" method="post">
            <input type="hidden" name="pengadaan_id" value="{$result_info.pengadaan_id|default:''}">
            <input type="hidden" name="gpbarang_cd" id="gpbarang_cd" value="{$result.gpbarang_cd|default:''}">
            <input type="hidden" name="pengajuanbarang_id" value="{$result.pengajuanbarang_id|default:''}">
            <input type="hidden" name="pengajuanbarang_barang_kondisi" value="{$result.pengajuanbarang_barang_kondisi|default:''}">
            <input type="hidden" name="pengajuanbarang_status" value="{$result.pengajuanbarang_status|default:''}">
            <table width="100%" class="table-input">
                <tbody>          
                    <tr class="headrow">
                        <th colspan="4">Hapus Barang</th>
                    </tr>                   
                    <tr>
                        <td>Nama</td>
                        <td>{$result.pengajuanbarang_nama|default:''}</td> 
                        <td width="20%">Lokasi Barang</td>
                        <td width="20%">
                            {foreach from=$rs_lokasi item=data}
                                {if {$result.lokasi_cd|default:''} eq $data.lokasi_cd}{$data.lokasi_name}{/if}
                            {/foreach}
                        </td>  
                    </tr> 
                    <tr>
                        <td>Harga</td>
                        <td style="text-align: left;font-size:16pt;color: red;font-weight: bold;">{$result.pengajuanbarang_hargasatuan|number_format:0:",":"."|default:''}</td>  
                        <td>Kategori Barang</td>
                        <td>
                            {foreach from=$rs_kategoribarang item=data} 
                                {if {$result.kategoribarang_cd|default:''} eq $data.kategoribarang_cd}{$data.kategoribarang_name}{/if}
                            {/foreach}
                        </td>               
                    </tr> 
                    <tr>                
                        <td width="20%">Jumlah</td>
                        <td width="30%">{$result.pengajuanbarang_qty|default:''}</td>    
                        <td>Jenis Barang</td>
                        <td>
                            {foreach from=$rs_jenisbarang item=data}
                            {if {$result.jenisbarang_cd|default:''} eq $data.jenisbarang_cd}{$data.jenisbarang_name}{/if}
                            {/foreach}
                        </td>  
                    </tr>  
                    <tr>                                  
                        <td width="20%">Umur Ekonomis(Tahun)</td>
                        <td width="20%">{$result.pengajuanbarang_penyusutan|default:''} (Tahun)</td>  
                        <td>Merk Barang</td>
                        <td>
                            {foreach from=$rs_merk item=data}                               
                                {if $data.merk_cd|default:'' eq $result.merk_cd|default:''}{$data.merk_name}{/if}                        
                            {/foreach}
                        </td>
                    </tr>  
                    <tr>                
                        <td>Garansi</td>    
                        <td> 
                            {if $result.pengajuanbarang_garansi|default:'' eq '1'}
                                IYA, {$dtm->get_full_date($result.pengajuanbarang_tgl_garansi|default:'')}
                            {else}
                                TIDAK 
                            {/if}
                        </td>  
                        <td>Barang Susut</td>
                        <td>{if $result.pengajuanbarang_susut|default:'' eq '1'}IYA{else}TIDAK{/if}</td>
                    </tr>  
                    <tr>                
                        <td>Keterangan</td>    
                        <td>{$result.pengajuanbarang_keterangan|default:''}</td>  
                        <td></td>
                        <td></td>
                    </tr> 
                    <tr class="submit-box">
                        <td colspan="4">
                            <input type="submit" class="edit-button" value="Hapus" name="save[insert]"> 
                        </td>
                    </tr>
                </tbody>
            </table>
        </form> 
    </div>